package com.ruoyi.web.controller.construction;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.construction.ConstructionInfo;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.SupplierInfo;
import com.ruoyi.system.service.construction.CaseConstructionService;
import com.ruoyi.system.service.construction.ConstructionInfoService;
import com.ruoyi.system.service.zhaungxiuservice.shopService.SupplierInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/case/caseteam")
public class CaseInfoTwoController extends BaseController {


    @Autowired
    private ConstructionInfoService constructionInfoService;

    @PreAuthorize("@ss.hasPermi('case:caseteam:caseconstwo')")
    @GetMapping(value = "/caseConstInfoListTwo}")
    public TableDataInfo caseConstInfTwo(ConstructionInfo info){
        startPage();
        List<ConstructionInfo> constructionInfos = constructionInfoService.caseConstInfoListTwo(info);
        return getDataTable(constructionInfos);
    }

    @Autowired
    private CaseConstructionService caseConstructionService;

    @PreAuthorize("@ss.hasPermi('case:caseteam:list')")
    @RequestMapping(value = "/list",method = RequestMethod.GET)
    public TableDataInfo list(ConstructionInfo constructionInfo)
    {
        startPage();
        List<ConstructionInfo> list = caseConstructionService.OneConstructionInfoList(constructionInfo);
        return getDataTable(list);
    }



}
